#include "stm32f4xx.h"                  // Device header
#include "led_drv.h"
#include "key_drv.h"

int main(void)
{
    gpioInit();
    keyInit();

  while (1)
  {
      if(keyValueGet(GPIOA,GPIO_Pin_0)==KEYON)
      {
        ledToggle();
      }
  }
}

